<template>
  <div class="toast" v-show="isShow">
    {{ alterMessage }}
  </div>
</template>

<script>
export default {
  name: "Toast",
  props: {
    alterMessage: {
      type: String,
      default: '默认信息'
    },
    isShow: {
      type: Boolean,
      default: false
    }
  }
}
</script>

<style scoped>
.toast {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  padding: 12px 15px;
  z-index: 999;


  color: #ffffff;
  font-size: 18px;
  background-color: rgba(0, 0, 0, .70);
  border-radius: 8px;
  text-align: center;
}
</style>
